// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@use "ds/_borders.scss" as *;
@use "ds/spacing.scss" as *;
@use "ds/_sizes.scss" as *;
@use "ds/typography.scss" as t;

.input-wrapper {
  --input-padding-size: var(--sp-xs);
  --opacity-button: 0;
  @include t.use-typography("code-font");
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  inline-size: 100%;
  position: relative;

  &:hover {
    --opacity-button: 1;
  }
  &:focus-within {
    --opacity-button: 1;
  }
}

.icon {
  color: var(--color-foreground-secondary);
  min-width: var(--sp-l);
}

.invisible-button {
  opacity: var(--opacity-button);

  &:hover {
    --opacity-button: 1;
  }
  &:focus {
    --opacity-button: 1;
  }
}
